<form id="addDevice" class="dialogForm" onsubmit="return false;">
	<input type="hidden" name="id" value=""/>
	<p>
		<label>Hostname/IP:</label>
		<input type="text" name="hostname" value="10.1.1.240"/>
	</p>
	<p>
		<label>Device Group:</label>
		<select name="type">
<?	foreach ($nms->getDeviceTypes() AS $type) {
		echo '<option value="'.$type->type.'">'.$type->description.'</option>';
	}
?>
		</select>
	</p>
	<h3>Use SNMP </h3>
	<p>
		<label>Community:</label>
		<input type="text" name="snmpCommunity" value="public"/>
		<label class="inline">Version</label>
		<select name="snmpVersion">
			<option value="v2c">2c</option>
			<option value="v1">1</option>
		</select>
	</p>

	<div class="actions">
		<button class="btnGreen" onClick="nms.device.add(this);">Add Device</button>
	
	
	</div>

	<h3>Discovery Results</h3>
	<table class="discoveryResults">
		<thead>
			<tr>
				<th width="30">&nbsp;</th>
				<th>Description</th>
				
			</tr>
		</thead>
		<tbody id="discoveryResults">
		
		
		</tbody>
	</table>
	<div class="actions">
		<button  class="btnRed" >Cancel</button>
	
	
	</div>
	
		
</form>